require 'pp'

class PrinterController < ApplicationController
  def index
    @routes = Route.find(:all)
  end

  def print
    @routes = []
    if params[:print_list] != nil && params[:print_list].keys != nil
      params[:print_list].keys.each do |id|
        @routes << Route.find(id.to_i)
      end
    end
    render(:layout => "print")
  end
end
